package com.bh.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.DictLabelVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 距离时效对象 bh_time_liness
 * 
 * @author slx
 * @date 2023-07-15
 */
@EqualsAndHashCode(callSuper = true)
@TableName("bh_time_liness")
@ApiModel(value = "距离时效对象", description = "距离时效对象")
@Data
public class BhTimeLiness extends DictLabelVo
{
    

    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 开始地区 */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @ApiModelProperty("开始地区")
    @Excel(name = "开始地区")
    private Long startOrgId;

    /** 目的地区 */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @ApiModelProperty("目的地区")
    @Excel(name = "目的地区")
    private Long destineOrgId;


    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @ApiModelProperty("站点路由")
    @Excel(name = "站点路由")
    private String routerOrgIds;

    /** 总时效 */
    @ApiModelProperty("总时效")
    @Excel(name = "总时效")
    private Integer totalTime;


    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("startOrgId", getStartOrgId())
            .append("destineOrgId", getDestineOrgId())
            .append("totalTime", getTotalTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
